public class Demo17 {
    public static void main(String[] args) {
        int b = 1;
        for (int i = 9; i > 0 ; i--) {
            b = 2 * (b + 1);
        }
        System.out.println(b);
    }
}
